<template>
	<view class="bj1">
		<view class="container" v-for="(item,index) in listone">

			<view class="item1">

				<text style="display: inline;">{{item.title}}</text>
				<text class="item12" style="display: inline;">({{item.result}})</text>
			</view>


			<view class="item2">{{item.money}}</view>

			<view class="item3">{{item.detail}}</view>

		</view>
		<view class="box-two">


			<view class="container-bottom">
				<view class="tit">
					<text>还款计划</text>
				
						<text class="btn">等额本息</text>
				
				</view>

				<view class="box1" v-for="(item,index) in list" :key="index">

					<view class="box1-top">
						<view class="top-left">{{ item.shouqi }}</view>
						<view class="top-right">{{ item.time }}</view>
					</view>

					<view class="box1-bottom">
						<view class="bottom-money">{{ item.money }}</view>
						<view class="bottom-detail">{{ item.detail }}</view>
					</view>
				</view>



			</view>
		</view>

	</view>

</template>

<script>
	export default {
		methods: {
			loginclick() {
				uni.navigateTo({
					url: '/pagesB/createRating/repayDeatil'
				});
			}
		},

		data() {
			return {
				list: [{
					shouqi: '首期',
					time: '22/10/10待还',
					money: '988.83',
					detail: '含本金672.93 + 利息315.9'

				}, {
					shouqi: '首期',
					time: '22/10/10待还',
					money: '988.83',
					detail: '含本金672.93 + 利息315.9'

				}, {
					shouqi: '首期',
					time: '22/10/10待还',
					money: '988.83',
					detail: '含本金672.93 + 利息315.9'

				}, {
					shouqi: '首期',
					time: '22/10/10待还',
					money: '988.83',
					detail: '含本金672.93 + 利息315.9'

				}, {
					shouqi: '首期',
					time: '22/10/10待还',
					money: '988.83',
					detail: '含本金672.93 + 利息315.9'

				}],

				listone: [{
					title: '总金额',
					money: '200000',
					detail: '2024.07.05借款200,000元',
					result: '已还清'
				}],

			}
		},

	}
</script>

<style lang="scss" scoped>
	.bj1 {
		background-color: #F3F4F5;
		background-size: 100% 100%;
		padding: 28rpx 28rpx;
	}


	.container {
		height: 332rpx;
		background-color: #fff;
		border-radius: 12rpx;
		margin-bottom: 24rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: relative;


	}

	.item1 {
		height: 40px;
		padding-top: 48rpx;
	}

	.item2 {
		height: 55px;
		padding-top: 60rpx;
		font-family: DIN, DIN;
		font-weight: bold;
		font-size: 72rpx;
		color: #333333;
		line-height: 40rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
	}

	.item3 {
		height: 60px;
		padding-top: 24rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #666666;
		line-height: 40rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
	}
	.btn{
		width: 132rpx;
		height: 44rpx;
		border-radius: 4rpx 4rpx 4rpx 4rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 24rpx;
		color: #FFFFFF;
		text-align: center;
		font-style: normal;
		text-transform: none;
		background-color: #3C75F2;
		margin-left: 32rpx;
		padding: 6rpx 18rpx;
	}

	.container-bottom {
		padding: 0 28rpx;

		.box1 {
			margin: 20rpx 0;
			padding: 24rpx;
			border-radius: 8rpx;
			display: flex;
			flex-direction: column;
		}

		.box1-top {
			display: flex;
			justify-content: space-between;
			font-size: 28rpx;
			color: #333;
			margin-bottom: 28rpx;

			.top-left {
				font-weight: 600;
			}

			.top-right {
				color: #999;
			}
		}

		.box1-bottom {
			display: flex;
			justify-content: space-between;
			font-size: 28rpx;
			color: #333;
			margin-bottom: 16rpx;
	

			.bottom-money {
				font-size: 32rpx;
				font-weight: bold;
				color: #333;
			}

			.bottom-detail {
				font-size: 24rpx;
				color: #888;
			}
		}
	}

	.tit {
		padding-top: 40rpx;
		padding-left: 28rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 32rpx;
		color: #333333;
	}

	.box-two {
		background-color: #fff;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
	}
</style>